package com.ruoyi.framework.config.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * CAS属性配置
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "cas")
public class CasProperties
{
    /**
     * CAS服务器地址
     */
    private String serverUrl;

    /**
     * CAS登录地址
     */
    private String loginUrl;

    /**
     * CAS注销地址
     */
    private String logoutUrl;

    /**
     * 当前应用服务地址
     */
    private String clientHostUrl;

    /**
     * 是否启用CAS
     */
    private Boolean enabled = false;

    public String getServerUrl()
    {
        return serverUrl;
    }

    public void setServerUrl(String serverUrl)
    {
        this.serverUrl = serverUrl;
    }

    public String getLoginUrl()
    {
        return loginUrl;
    }

    public void setLoginUrl(String loginUrl)
    {
        this.loginUrl = loginUrl;
    }

    public String getLogoutUrl()
    {
        return logoutUrl;
    }

    public void setLogoutUrl(String logoutUrl)
    {
        this.logoutUrl = logoutUrl;
    }

    public String getClientHostUrl()
    {
        return clientHostUrl;
    }

    public void setClientHostUrl(String clientHostUrl)
    {
        this.clientHostUrl = clientHostUrl;
    }

    public Boolean getEnabled()
    {
        return enabled;
    }

    public void setEnabled(Boolean enabled)
    {
        this.enabled = enabled;
    }
} 